#include "svideo-m.h"

#ifndef _C_GUI_
#define _C_GUI_

#define G_O_HABILITAR

#define G_T_BOTON  1
#define G_T_TEXTO  2
#define G_T_IMAGEN 3
#define G_T_CTEC   4
#define G_T_CUNI   5
#define G_T_LMAPAS 6

class c_objeto_gui
{
 private:

 public:
  c_sv_mensaje * g_b_mensajes;
  unsigned int g_b_nmensajes;
  unsigned int g_id;
  unsigned int g_img;
  int g_x,g_y;
  char * g_texto;
  char g_tipo;
  unsigned int id() { return g_id; }
  unsigned int imagen() { return g_img; }
  unsigned int x() { return g_x; }
  unsigned int y() { return g_y; }
  char * texto() { return g_texto; }
  char tipo() { return g_tipo; }
  unsigned int nmensajes() { return g_b_nmensajes; }
  void nmensajes(unsigned int i) { g_b_nmensajes = i; g_b_mensajes = new c_sv_mensaje[i]; }
  c_sv_mensaje mensaje(unsigned int i) { return g_b_mensajes[i]; }
  void mensaje(unsigned int i,c_sv_mensaje m) { if(i < g_b_nmensajes) g_b_mensajes[i] = m; }
  void atexto(char m);
  void rtexto();
  void btexto();
};

class c_gui_boton : public c_objeto_gui
{
 private:

 public:
  c_gui_boton(unsigned int id,unsigned int x,unsigned int y,unsigned int i,char * t);

};

class c_gui_texto : public c_objeto_gui
{
 public:
  c_gui_texto(unsigned int id,unsigned int x, unsigned int y,unsigned int i,char * t);
};

class c_gui_imagen : public c_objeto_gui
{
 public:
  c_gui_imagen(unsigned int id,unsigned int x, unsigned int y,unsigned int i);
};

class c_gui_ctec : public c_objeto_gui
{
 public:
  c_gui_ctec(unsigned int id,unsigned int x, unsigned int y, unsigned int tipo);
};

class c_gui_cuni : public c_objeto_gui
{
 public:
  c_gui_cuni(unsigned int id,unsigned int x, unsigned int y, unsigned int tipo);
};

class c_gui_lmapas : public c_objeto_gui
{
 public:
  c_gui_lmapas(unsigned int id, unsigned int x, unsigned int y);
};

#endif
